#include "comm.hpp"

int main() {
    std::string query_string;
    GetQueryString(query_string);
    std::string str1;
    std::string str2;
    if (!CutString(query_string, "&", str1, str2)) {
        std::cerr << "参数Cur失败" << std::endl;
    }
    std::string name1;
    std::string value1;
    if (!CutString(str1, "=", name1, value1)) {
        std::cerr << "参数Cur失败" << std::endl; 
    }
    std::string name2;
    std::string value2;
    if (!CutString(str2, "=", name2, value2)) {
        std::cerr << "参数Cur失败" << std::endl; 
    }   
    std::cout << name1 << "=" << value1 << std::endl;
    std::cout << name2 << "=" << value2 << std::endl;
    std::cerr << name1 << "=" << value1 << std::endl;
    std::cerr << name2 << "=" << value2 << std::endl;
    
    return 0;
}